package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.NursingProject;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface NursingProjectMapper {

    List<NursingProject> selectNursingProjects();

    void insertNursingProject(NursingProject nursingProject);

    void updateNursingProject(NursingProject nursingProject);

    void deleteNursingProject(@Param("id") Long id);

    Page<NursingProject> selectByPage(String name, Integer status);

    NursingProject selectById(Integer id);

    void able(Long id, Integer status);
}
